<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/11/5
  Time: 14:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
<%--    引入my97date的js文件--%>
    <script language="javascript" type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
</head>
<body>

<%--
    处理文件上传
    三个步骤:
        1、method必须是post
        2、enctype改成  multipart/form-data
        3、在servlet上加上注解  @multipartconfig
--%>
<form action="studentServlet" method="post" enctype="multipart/form-data">
    <input type="hidden" name="mark" value="insertStudent">
    姓名: <input type="text" name="sname" value=""> <br>
    性别: <input type="radio" name="sex" value="男">男
        <input type="radio" name="sex" value="女">女<br>
    爱好: <input type="checkbox" name="hobby" value="抽烟">抽烟
        <input type="checkbox" name="hobby" value="喝酒">喝酒
        <input type="checkbox" name="hobby" value="rap">rap
        <input type="checkbox" name="hobby" value="烫头">烫头 <br>

    生日:<input class="Wdate" type="text" name="sbir" onClick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd HH:mm:ss'})">
    <br>
    图像: <input type="file" name="photo" value=""> <br>
    <input type="submit" value="添加学生">


</form>
</body>
</html>
